package com.etime.perfectschool.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.perfectschool.pojo.SchoolFood;

public interface SchoolFoodService {

    //查询全部美食
    Page<SchoolFood> getAllSchoolFood(int current,int size);
    //发布美食
    int addSchoolFood(SchoolFood schoolFood);
    //删除美食
    boolean deleteSchoolFood(int foodId);
    //点赞功能
    boolean likeSchoolFood(SchoolFood schoolFood);
    //查询某条美食
    SchoolFood getSchoolFood(int foodId);
    //修改美食
    boolean updateSchoolFood(SchoolFood schoolFood);
}
